package com.fs.service;

import com.fs.pojo.OrderDetail;
import com.fs.vo.Condition;
import com.github.pagehelper.PageInfo;

/**
 * @author yyds
 * @fileName OrderDetailSevice
 * @date 2024/10/17 10:20
 * @description 订单（进货退货）商品详细服务方法
 **/
public interface OrderDetailService {
    /**
     * 分页获取当前订单编号的商品详情单
     * @param condition
     * @return
     */
    PageInfo<OrderDetail> getOrderDetailList(Condition<OrderDetail> condition);

    /**
     * 添加当前订单编号的商品详情单
     * @param orderDetail
     * @return
     */
    Integer addOrderDetail(OrderDetail orderDetail);

    /**
     * 修改当前商品编号的商品详情
     * @param orderDetail
     * @return
     */
    Integer updateOrderDetail(OrderDetail orderDetail);
    /**
     * 删除当前商品编号的商品详情
     */
    Integer delOrderDetailById(OrderDetail orderDetail);
}
